package com.qianya.weishi_server.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.qianya.weishi_server.entity.ItemAnswer;
import com.qianya.weishi_server.mapper.ItemAnswerMapper;
import com.qianya.weishi_server.service.ItemAnswerService;
@Service
public class ItemAnswerServiceImpl implements ItemAnswerService{

    @Resource
    private ItemAnswerMapper itemAnswerMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return itemAnswerMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ItemAnswer record) {
        return itemAnswerMapper.insert(record);
    }

    @Override
    public int insertSelective(ItemAnswer record) {
        return itemAnswerMapper.insertSelective(record);
    }

    @Override
    public ItemAnswer selectByPrimaryKey(Integer id) {
        return itemAnswerMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ItemAnswer record) {
        return itemAnswerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ItemAnswer record) {
        return itemAnswerMapper.updateByPrimaryKey(record);
    }

    @Override
    public int batchInsert(List<ItemAnswer> list) {
        return itemAnswerMapper.batchInsert(list);
    }

}
